Gets the value associated with the specified key.
public virtual bool TryGetValue(
,
out
)
'Declaration
Public Overridable Function TryGetValue( _
ByVal As , _
ByRef As _
) As Boolean
'Usage
Dim instance As ThreadSafeDictionary(Of TKey,TValue)
Dim key As
Dim value As
Dim value As Boolean
value = instance.TryGetValue(key, value)
public virtual bool TryGetValue(
key,
out value
)
function Leadtools.Dicom.AddIn.ThreadSafeDictionary.TryGetValue(
key ,
value
)
public:
virtual bool TryGetValue(
,
[Out]
)
Parameters
- key
- The key whose value to get.
- value
- When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the parameter. This parameter is passed uninitialized.
Return Value
true if the object that implements
IDictionary contains an element with the specified key; otherwise, false.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2